package com.relytosoft.mizar.media.analyze.api.pojo.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;

/**
 * @Author: zyc
 * @version: v1.0
 * @description: com.relytosoft.mizar.analyze.structure.api.pojo.vo
 * @Date: 2022/5/17 14:15
 */
@ApiModel("AyCameraVo")
public class AyCameraVo {
    /**
     * 设备ID
     */
    @ApiModelProperty(value = "设备ID", required = true)
    @NotBlank(message = "设备ID不能为空")
    private String cameraId;

    /**
     * 设备名称
     */
    @ApiModelProperty(value = "设备名称", required = true)
    @NotBlank(message = "设备名称不能为空")
    private String cameraName;

    /**
     * rtsp或rtmp地址
     */
    @ApiModelProperty(value = "rtsp或rtmp地址", required = true)
    @NotBlank(message = "设备流地址不能为空")
    private String videoUrl;

    public String getCameraId() {
        return this.cameraId;
    }

    public void setCameraId(String cameraId) {
        this.cameraId = cameraId;
    }

    public String getCameraName() {
        return this.cameraName;
    }

    public void setCameraName(String cameraName) {
        this.cameraName = cameraName;
    }

    /**
     * 获得rtsp或rtmp地址
     */
    public String getVideoUrl(){
        return this.videoUrl;
    }
    /**
     * 设置rtsp或rtmp地址
     */
    public void setVideoUrl(String videoUrl){
        this.videoUrl = videoUrl;
    }

    @Override
    public String toString() {
        return "AyCameraVo{" +
                "cameraId='" + cameraId + '\'' +
                ", cameraName='" + cameraName + '\'' +
                ", videoUrl='" + videoUrl + '\'' +
                '}';
    }
}
